package com.solt.prism.core;

import com.solt.prism.plugins.NewsCrawler;

public class Worker implements Runnable {
	private NewsCrawler crawler;
	
	public Worker(NewsCrawler crawler) {
		this.crawler = crawler;
	}
	@Override
	public void run() {
		try {
			crawler.crawl();
		} catch (InterruptedException e) {
		}
	}
	
	public void shutdown() {
		crawler.shutdown();
	}
	
}
